﻿using SmartAnswerPlatform.Models.ViewModels.Base;
using SqlSugar;

namespace SmartAnswerPlatform.Models.ViewModels.System
{
    /// <summary>
    /// Sys_menu表
    /// </summary>
    public class SysMenuViewModel : BaseViewModel
    {
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string? MenuName { get; set; }

        /// <summary>
        /// 菜单编码
        /// </summary>
        public string? MenuCode { get; set; }

        /// <summary>
        /// 父菜单ID
        /// </summary>
        public long? ParentId { get; set; }

        /// <summary>
        /// 显示顺序
        /// </summary>
        public int? OrderNum { get; set; }

        /// <summary>
        /// 路由地址
        /// </summary>
        public string? Path { get; set; }

        /// <summary>
        /// 类型（M目录 C菜单 F按钮）
        /// </summary>
        public string? MenuType { get; set; }

        /// <summary>
        /// 显示状态（0显示 1隐藏）
        /// </summary>
        public bool? IsVisible { get; set; }

        /// <summary>
        /// 菜单状态（0正常 1停用）
        /// </summary>
        public string? Status { get; set; }

        /// <summary>
        /// 菜单图标
        /// </summary>
        public string? Icon { get; set; } = string.Empty;
    }
}